<div class="row">
    <div class="col s12" dw-loading="brandsList">
        <table class="responsive-table centered bordered striped">
            <thead>
                <tr style="height: 40px;">
                    <th>品牌名称</th>
                    <th>店铺数</th>
                    <th>宝贝数</th>
                    <th>近30天销售额</th>
                    <th>近30天销售量</th>
                    <th>成交均价</th>
                    <th>品牌详情</th>
                    <th>查看数据</th>
                    <th>监控</th>
                </tr>
            </thead>
            <tbody>
                <tr class="repeat-item" bindonce ng-repeat="brand in vm.table.brands track by $index">
                    <td ng-if="brand.brandName" ng-bind-html="brand.brandName | highlight:vm.param.q"></td>
                    <td ng-if="brand.brandName">{{brand.shopNum}}</td>
                    <td ng-if="brand.brandName">{{brand.productNum}}</td>
                    <td ng-if="brand.brandName" title="点击查看历史数据" class="hisData cp" brand='{{brand.brandName}}' dim="sellMoney" jq-popup popup-config="brand" popup-dim="'sellMoney'" popup-type="'brand'"
                   uib-popover-template="'myPopoverTemplate.html'" popover-class="popover_line" popover-trigger="'outsideClick'" popover-append-to-body="true" popover-enable='{{vm.popoverEnable}}'><i class="fa fa-rmb"></i>{{brand.sellMoney | bigNum}}</td>
                    <td ng-if="brand.brandName" title="点击查看历史数据" class="hisData cp" brand='{{brand.brandName}}' dim="sellAmount" jq-popup popup-config="brand" popup-dim="'sellAmount'" popup-type="'brand'"
                    uib-popover-template="'myPopoverTemplate.html'" popover-class="popover_line" popover-trigger="'outsideClick'" popover-append-to-body="true" popover-enable='{{vm.popoverEnable}}'>{{brand.sellAmount | bigNum}}</td>
                    <td ng-if="brand.brandName" title="点击查看历史数据" class="hisData cp" brand='{{brand.brandName}}' dim="avgPrice" jq-popup popup-config="brand" popup-dim="'avgPrice'" popup-type="'brand'"
                    uib-popover-template="'myPopoverTemplate.html'" popover-class="popover_line" popover-trigger="'outsideClick'" popover-append-to-body="true" popover-enable='{{vm.popoverEnable}}'><i class="fa fa-rmb"></i>{{brand.avgPrice}}元</td>
                    <td ng-if="brand.brandName" class="w120">
                        <i class="fa fa-pie-chart cp" title="点击查看品牌详情" style="font-size: 16px;" ng-click="vm.getBrandBasic($event,$index)"></i>
                    </td>
                    <td ng-if="brand.brandName" class="w120">
                        <a class="cp" title="点击查看品牌数据" ng-click="vm.getBrandDetail(brand.brandName)">店铺 | 商品</a>
                    </td>
                    <td ng-if="brand.brandName" class="monitorTd" add-monitor add-monitor-config="brand" add-monitor-type="'brand'">
                        <i class="fa cp" ng-class="{'fa-toggle-on':brand.monitored,'fa-toggle-off':!brand.monitored,icon:true}"></i>
                    </td>
                    <td ng-if="!brand.brandName" colspan="9">
                        <brand-stat-data-component brand-name="brand.brandname"></brand-stat-data-component>
                    </td>
                </tr>
                <tr ng-if="vm.table.brands.length==0">
                    <td colspan="9">无搜索结果</td>
                </tr>
            </tbody>
        </table>
        <div class="mt10 center-align" ng-if="vm.getType == 'brand'">
            <pager page-count="vm.pager.pageCount" current-page="vm.pager.currentPage" on-page-change="vm.pager.onPageChange()" show-goto="true"></pager>
        </div>
    </div>
</div>
